package com.ruoyi.erp.domain.bo;

import com.ruoyi.common.annotation.query.*;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 货位业务对象 base_wh_location
 *
 * @author chenyun
 * @date 2022-03-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("货位业务对象")
public class WhLocationBo extends TreeEntity {

    /**
     * 编号
     */
    @EQ
    @ApiModelProperty(value = "编号", required = true)
    @NotNull(message = "编号不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 仓库
     */
    @EQ
    @ApiModelProperty(value = "仓库", required = true)
    @NotNull(message = "仓库不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long warehouseId;

    /**
     * 货位编码
     */
    @EQ
    @ApiModelProperty(value = "货位编码", required = true)
    @NotBlank(message = "货位编码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String locationCode;

    /**
     * 货位名称
     */
    @LikeRight
    @ApiModelProperty(value = "货位名称", required = true)
    @NotBlank(message = "货位名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String locationName;

    /**
     * 长
     */
    @EQ
    @ApiModelProperty(value = "长", required = true)
    @NotBlank(message = "长不能为空", groups = { AddGroup.class, EditGroup.class })
    private String locationLength;

    /**
     * 宽
     */
    @EQ
    @ApiModelProperty(value = "宽", required = true)
    @NotBlank(message = "宽不能为空", groups = { AddGroup.class, EditGroup.class })
    private String locationWidth;

    /**
     * 高
     */
    @EQ
    @ApiModelProperty(value = "高", required = true)
    @NotBlank(message = "高不能为空", groups = { AddGroup.class, EditGroup.class })
    private String locationHeight;

    /**
     * 承重
     */
    @EQ
    @ApiModelProperty(value = "承重", required = true)
    @NotBlank(message = "承重不能为空", groups = { AddGroup.class, EditGroup.class })
    private String locationWeight;

    /**
     * 机构
     */
    @EQ
    @ApiModelProperty(value = "机构", required = true)
    @NotNull(message = "机构不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 机构
     */
    @EQ
    @ApiModelProperty(value = "机构", required = true)
    @NotNull(message = "机构不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orgId;

    /**
     * 状态
     */
    @EQ
    @ApiModelProperty(value = "状态", required = true)
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 备注
     */
    @EQ
    @ApiModelProperty(value = "备注")
    private String remark;


}
